import { createRouter, createWebHistory } from 'vue-router'
import layout from '../views/layout.vue'
const { VITE_APP_BASE_URL } = import.meta.env

const router = createRouter({
    history: createWebHistory(VITE_APP_BASE_URL),
    routes: [
        // { path: '', redirect: '/about' },
        {
            path: '/',
            component: layout,
            children: [
                {
                    path: '/about',
                    component: () => import('../views/about.vue'),
                },
                {
                  path: '/home',
                  component: () => import('../views/home.vue'),
              },
            ],
        },
    ],
})
export default router
